/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.entidades;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "bdagrupados.ventasnegocio")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Ventasnegocio.findAll", query = "SELECT v FROM Ventasnegocio v"),
    @NamedQuery(name = "Ventasnegocio.findByVnNegocio", query = "SELECT v FROM Ventasnegocio v WHERE v.vnNegocio = :vnNegocio"),
    @NamedQuery(name = "Ventasnegocio.findByVnNumVentas", query = "SELECT v FROM Ventasnegocio v WHERE v.vnNumVentas = :vnNumVentas"),
    @NamedQuery(name = "Ventasnegocio.findByVnNumCupones", query = "SELECT v FROM Ventasnegocio v WHERE v.vnNumCupones = :vnNumCupones")})
public class Ventasnegocio implements Serializable {
    private static final long serialVersionUID = 1L;
    @Size(max = 60)
    @Column(name = "vn_negocio")
    @Id
    private String vnNegocio;
    @Basic(optional = false)
    @NotNull
    @Column(name = "vn_num_ventas")
    private long vnNumVentas;
    @Column(name = "vn_num_cupones")
    private BigInteger vnNumCupones;

    public Ventasnegocio() {
    }

    public String getVnNegocio() {
        return vnNegocio;
    }

    public void setVnNegocio(String vnNegocio) {
        this.vnNegocio = vnNegocio;
    }

    public long getVnNumVentas() {
        return vnNumVentas;
    }

    public void setVnNumVentas(long vnNumVentas) {
        this.vnNumVentas = vnNumVentas;
    }

    public BigInteger getVnNumCupones() {
        return vnNumCupones;
    }

    public void setVnNumCupones(BigInteger vnNumCupones) {
        this.vnNumCupones = vnNumCupones;
    }
    
}
